package com.company.calendar.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 日期类型DTO
 * 
 * @author System
 * @since 1.0.0
 */
@Data
public class DateTypeDTO {
    
    private Long id;
    
    @NotNull(message = "公司ID不能为空")
    private Long companyId;
    
    @NotBlank(message = "类型名称不能为空")
    @Size(max = 50, message = "类型名称长度不能超过50个字符")
    private String typeName;
    
    @NotBlank(message = "类型编码不能为空")
    @Size(max = 30, message = "类型编码长度不能超过30个字符")
    private String typeCode;
    
    @NotNull(message = "是否工作日不能为空")
    private Boolean isWorkday;
    
    private String color = "#4CAF50";
    
    private String description;
}


